package com.paiai.lslease.dao.appinvitation;

import com.ibatis.sqlmap.client.SqlMapClient;

import java.sql.SQLException;

public class AppInvitationExternalDAOImpl implements AppInvitationExternalDAO {

    private SqlMapClient sqlMapClient;

    public AppInvitationExternalDAOImpl(SqlMapClient sqlMapClient) {
        super();
        this.sqlMapClient = sqlMapClient;
    }

    public int getUpToDateAppInvitation() throws SQLException {
        return (Integer)sqlMapClient.queryForObject("app_invitation_external.getUpToDateAppInvitation");
    }
}
